import request from '@/utils/request'

// 新增腾讯云配置
export const createTencentConfig = (data) => request({
  url: '/admin/tencent/config',
  method: 'post',
  data
})

// 删除腾讯云配置
export const deleteTencentConfig = (data) => request({
  url: '/admin/tencent/config',
  method: 'delete',
  data
})

// 修改腾讯云配置
export const updateTencentConfig = (data) => request({
  url: '/admin/tencent/config',
  method: 'put',
  data
})

// 获取腾讯云配置
export const getTencentConfig = (id) => request({
  url: `/admin/tencent/config/${id}`,
  method: 'get'
})

// 查询腾讯云配置
export const pageQuery = (data) => request({
  url: '/admin/tencent/config/all',
  method: 'post',
  data
})
